<ul id="mycarousel">


<div class="slideshow">
    <?php foreach ($noticias as $noticia): ?>
    <div><a href="<?php echo  url_for('@homepage') ?>">
            <h4><?php echo $noticia->getNoticiaCategoria() ?>:<?php echo $noticia->getTitulo() ?></h4>
     
      <?php echo $noticia->getMancheta() ?>
      <img width="190" border="0" src="<?php echo ('/uploads/noticia/senia_0.png'); ?>" name="foto">
   </a></div>
    <?php endforeach; ?>
  </div>

</ul>
<script type="text/javascript">

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'circular',
        initCallback: mycarousel_initCallback
    });
});


</script> 